/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.opensource.jdom.taggen.html.tag;

import org.opensource.jdom.taggen.html.CoreAttributes;

/**
 *
 * Bi-directional text. Defines an element that has different directional
 * content. This is usually used with languages that are read in a different
 * direction to the default language. For example, if Hebrew were used in an
 * English document, it would need to be defined as being read from
 * right-to-left.
 *
 * <h2>Example</h2> <pre><code class="html">
 * &lt;p&gt;The output of this <strong>&lt;bdo dir="rtl"&gt;</strong>word
 * <strong>&lt;/bdo&gt;</strong> will actually be "drow".&lt;/p&gt;
 * </code></pre>
 *
 * @author sergio.valdez
 */
public class Bdo extends CoreAttributes{

    /**
     * is used to specify the direction and can be set to ltr (left-to-right) or
     * rtl (right-to-left). 
     */
    private String dir;
    /**
     * can be used to specify the language of the element.
     */
    private String lang;

    /**
     * Initializing Requiered attributes.
     */
    public Bdo(String dir) {
        this.dir = dir;
    }

    /**
     * is used to specify the direction and can be set to ltr (left-to-right) or
     * rtl (right-to-left).
     * @return the dir
     */
    public String getDir() {
        return dir;
    }

    /**
     * is used to specify the direction and can be set to ltr (left-to-right) or
     * rtl (right-to-left).
     * @param dir the dir to set
     */
    public void setDir(String dir) {
        this.dir = dir;
    }

    /**
     * can be used to specify the language of the element.
     * @return the lang
     */
    public String getLang() {
        return lang;
    }

    /**
     * can be used to specify the language of the element.
     * @param lang the lang to set
     */
    public void setLang(String lang) {
        this.lang = lang;
    }


}
